<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加用户</title>


<link rel="shortcut icon"
	href="<c:url value="/easyui/css/images/favicon.ico"/>" />
<link rel="stylesheet" href="<c:url value="/css/flipclock.css"/>">
<link href="<c:url value="/css/CalcSS3.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/css/index.css"/>" rel="stylesheet"
	type="text/css" />
<link href="<c:url value="/easyui/css/easyui.css"/>" rel="stylesheet"
	type="text/css">
<link href="<c:url value="/easyui/css/easyui_animation.css"/>"
	rel="stylesheet" type="text/css">

<link href="<c:url value="/easyui/css/easyui_plus.css" />"
	rel="stylesheet" type="text/css">
<link href="<c:url value="/easyui/css/insdep_theme_default.css" />"
	rel="stylesheet" type="text/css">
<link href="<c:url value="/easyui/css/icon.css" />" rel="stylesheet"
	type="text/css">
<link
	href="<c:url value="/easyui/css/font-awesome-4.7.0/css/font-awesome.min.css" />"
	rel="stylesheet" type="text/css">
<!-- 引入 ECharts 文件 -->
<script type="text/javascript" src="<c:url value="/js/echarts.js"/>"></script>
<!--放入自定义的图表-->

<script type="text/javascript" src="<c:url value="/js/monitor.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/easyui/js/jquery.min.js"/>"></script>
<%--<script type="text/javascript" src="js/jquery.js"></script>--%>
<script type="text/javascript"
	src="<c:url value="/easyui/js/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/easyui/js/jquery.insdep-extend.min.js"/>">
	
</script>
<script type="text/javascript">
	$.extend($.fn.validatebox.defaults.rules, {
		checkPassword : {//密码验证
			validator : function(value) {
				var pwd = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/;
				if (pwd.test(value)) {
					return true;
				} else {
					return false;
				}
			},
			message : "密码只能是长度8到16位的英文字母和数字！"
				/*validType:['checkPassword']*/
		},
		phoneNum : { //验证手机号   
			validator : function(value, param) {
				return /^1[3-8]+\d{9}$/.test(value);
			},
			message : '请输入正确的手机号码。'
		}
	});
</script>
</head>
<body>
	<form id="user-f" method="post" action="add-User-Infos">

		<div class="line">
			<input name="uname" class="easyui-textbox"
				data-options="required:true, label:'用户名：', width:450">
		</div>
		<div class="line">
			<input name="upassword" class="easyui-textbox"
				data-options="required:true, label:'密码：', width:450,
				validType:['length[6,20]']">
		</div>
		<div class="line">
			<input name="urealName" class="easyui-textbox"
				data-options="required:true, label:'真实姓名：', width:450">
		</div>
		<div class="line">
			<input name="phone" class="easyui-textbox"
				data-options="required:true, label:'手机：', width:450,
				validType:['phoneNum']">
		</div>
		<div class="line">
			<input name="userAddress" class="easyui-textbox"
				data-options="required:true, label:'用户地址：', width:450">
		</div>
		<div class="line">
			<input name="crmDeptno" class="easyui-combobox"
				data-options="required:true, label:'部门ID：',
				   width:450,panelHeight:'auto',editable:false,
				    url:'to-findAllCrmDept',
				    method:'get',
				    valueField:'crmDeptno',
				    textField:'crmDeptno'">
		</div>

	</form>
</body>
</html>